﻿@model DLM.Web.ViewModel.Admin.PartyInfoPageView
<table summary="" class="tb">
    <colgroup>
        <col class="a" />
        <col class="b" />
        <col class="c" />
        <col class="d" />
    </colgroup>
    <thead>
        <tr>
            <th>
            </th>
            <th class="b">
                用户账号
            </th>
            <th>
                姓名
            </th>
            <th>
                电话
            </th>
            <th>
            </th>
            <th>
            </th>
        </tr>
    </thead>
    <tbody>
        @foreach (var item in Model.UserList)
        {
            <tr>
                <td>
                    @item.AccountName
                </td>
                <td>
                    @item.Name
                </td>
                <td>
                    @item.Phone
                </td>
                <td>
                    @using (Ajax.BeginForm("Quit", "Party", new { partyID = Model.Party.PartyID, accountName = item.AccountName }, new AjaxOptions { HttpMethod = "Post", UpdateTargetId = "divUser", InsertionMode = InsertionMode.Replace }))
                    {
                       <input type="submit" class="btn_quit" value="" />
                    }
                </td>
                <td>
                    @using (Ajax.BeginForm("BreakApp", "Party", new { userID = item.UserID, partyID = Model.Party.PartyID }, new AjaxOptions { HttpMethod = "Post", UpdateTargetId = "divUser", InsertionMode = InsertionMode.Replace, OnFailure="alert('爽约设置失败，请不要重复设置爽约信息');",OnSuccess="alert('设置爽约成功');" }))
                    {
                       
                        <input type="submit" class="btn_shuangyue" value="" />
                    }
                </td>
            </tr>
        }
    </tbody>
</table>
